#include<stdio.h>
int menu()
{
    int choose ; 
    printf("\033[37;40m *************** \033[0m\n");
    printf("\033[37;40m please choose \033[0m\n");
    printf("\033[37;40m 1.start game \033[0m\n");     
    printf("\033[37;40m 0.exit game \033[0m\n");
    printf("\033[37;40m *************** \033[0m\n");
    while(1)
    {
      scanf("%d",&choose);
      if(1==choose)
      {  
         return 1;
      }
       else if(0==choose)
      {  
         return 0;
      }
      else
      {
         printf("\033[37;40m plaese choose again! \033[0m\n");
      }
    }
}
